// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import FastClick from 'fastclick'
import App from './App'
import router from './router'
import {XHeader, Cell, CellBox, Group, AjaxPlugin, WechatPlugin,ToastPlugin} from 'vux'
import {http} from './lib/httpHelpers'
import Cookies from 'js-cookie'
import '@/permission' // 权限

Vue.use(AjaxPlugin)
Vue.use(WechatPlugin)
Vue.use(ToastPlugin)
// Vue.use(vuei18n)

Vue.component(XHeader.name, XHeader)
Vue.component(Group.name, Group)
Vue.component(Cell.name, Cell)
Vue.component(CellBox.name, CellBox)

// 公众号配置
// Vue.wechat.config(data.data)

FastClick.attach(document.body)

Vue.config.productionTip = false
Vue.prototype.$http = http
Vue.prototype.$Cookies = Cookies

/* eslint-disable no-new */
new Vue({
  router,
  render: h => h(App)
}).$mount('#app-box')
